package com.hsc.yalebao.newui;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.hsc.yalebao.model.MessageTitleBean.ResultBean;
import java.io.PrintStream;
import java.util.ArrayList;

public class NewDongTaiMessageListViewAdapter extends BaseAdapter
{
  private Context context;
  private ArrayList<MessageTitleBean.ResultBean> messageList;

  public NewDongTaiMessageListViewAdapter(ArrayList<MessageTitleBean.ResultBean> paramArrayList, Context paramContext)
  {
    this.messageList = paramArrayList;
    this.context = paramContext;
  }

  public int getCount()
  {
    if (this.messageList == null)
      return 0;
    return this.messageList.size();
  }

  public Object getItem(int paramInt)
  {
    return this.messageList.get(paramInt);
  }

  public long getItemId(int paramInt)
  {
    return paramInt;
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    ViewHolder localViewHolder;
    String[] arrayOfString;
    if (paramView == null)
    {
      paramView = View.inflate(this.context, 2130903121, null);
      localViewHolder = new ViewHolder();
      localViewHolder.iv_read_icon = ((ImageView)paramView.findViewById(2131100079));
      localViewHolder.tv_title = ((TextView)paramView.findViewById(2131099849));
      localViewHolder.tv_time = ((TextView)paramView.findViewById(2131099850));
      paramView.setTag(localViewHolder);
      localViewHolder.iv_read_icon.setVisibility(8);
      MessageTitleBean.ResultBean localResultBean = (MessageTitleBean.ResultBean)this.messageList.get(paramInt);
      localViewHolder.tv_title.setText(localResultBean.Title);
      arrayOfString = localResultBean.Add_Time.split(" ");
    }
    for (int i = 0; ; i++)
    {
      if (i >= arrayOfString.length)
      {
        System.out.println("显示消息条目" + paramInt);
        return paramView;
        localViewHolder = (ViewHolder)paramView.getTag();
        break;
      }
      localViewHolder.tv_time.setText(arrayOfString[0]);
    }
  }

  public void setData(ArrayList<MessageTitleBean.ResultBean> paramArrayList)
  {
    this.messageList = paramArrayList;
  }

  static class ViewHolder
  {
    public ImageView iv_read_icon;
    public TextView tv_time;
    public TextView tv_title;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.newui.NewDongTaiMessageListViewAdapter
 * JD-Core Version:    0.6.2
 */